<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="../include/base.jsp" %>
<!DOCTYPE HTML>
<html lang="zh-CN">
<head>
	<meta charset="UTF-8">
	<title>凯盛项目管理系统</title>
	<link rel="stylesheet" type="text/css" href="../css/bootstrap.min.css" />
	<script type="text/javascript" src="../js/jquery.min.js"></script>
	<script type="text/javascript" src="../js/bootstrap.min.js"></script>
</head>
<body class="body">
	
	<%@include file = "../include/top.jsp" %>
	
	
	<div class="container">
	  <div class="row">
		
	<%@include file = "../include/left.jsp" %>
		<div class="span9">
			
			<ul class="breadcrumb" style="margin-bottom:0px;border-radius: 3px 3px 0 0">
				<li class="active">
					<a href="task.html"><i class="icon-user"></i>联系人</a>
				</li>
			</ul>
			<div class="wall">
				<div class="row">
					<div class="span3">
						<a href="contactnew.jspx" class="btn span2"><i class="icon-plus"></i>添加联系人</a>
						<div class="clear"></div>
						<c:forEach items="${list}" var="contact">
						<ul class="unstyled" style="margin-top:15px">
							<li style="line-height:30px">
								<i class="icon-list-alt"></i><a href="contactnote.jspx">${contact.name}</a>
							</li>
							
						</ul>
						</c:forEach>
					</div>
					<div class="span5" style="min-height:400px;border-left:1px solid #ccc;padding-left:15px">
					   <c:forEach items="">
						<address>
							<h3>${contact.name}</h3>
							<p>${contact.addtrss }</p>
							<small>手机</small> ${contact.tel }<br/>
							<small>固话</small> ${contact.mobile }<br/><br/>
							<small>邮箱</small> ${contact.mail }<br/>
							<small>地址</small> ${contact.address }<br/><br/>
							<small>主页</small> <a href="http://www.kaishengit.com">${contact.index }</a><br/>
							<small>微博</small> <a href="https://twitter.com/fankay">${contact.weibo}</a><br/>
						</address>
						<div class="block">
						  <p class="block-heading">简介</p>
							<div class="block-body">
							${contact.content }
							</div>
						</div>
						</c:forEach>
						<blockquote>
						  4月1日开演唱会
						  <small>樊凯发布于 3天前</small>
						</blockquote>
						<blockquote>
						  中午一起吃的午饭
						  <small>樊凯发布于 4天前</small>
						</blockquote>
						<blockquote>
						  初次见面，不错不错...
						  <small>樊凯发布于 1个月前</small>
						</blockquote>
						<a href="contact_note.html">查看所有记录</a>
						<br/><br/><br/>
						<a class="btn btn-primary" href="contact_edit.jspx"/><i class="icon-pencil icon-white"></i>编辑</a>
						<a class="btn btn-danger" href="javascript:;" class="del_link" rel="${contact.id }"/><i class="icon-trash icon-white"></i>删除</a>
						
					</div>
				</div>
			</div>
		</div>
	  </div>
	</div>
	<script type="text/javascript">
		$(document).ready(function(){
			$(".del_link").click(function(){
				if(confirm("确定要删除该记录吗？")) {
					location.href="documentdel.jspx?id="+$(this).attr("rel");
				}
			});
		});
	
	
	</script>
</body>
</html>